From: Florian Müllner Date: Wed, 15 Feb 2017 10:47:45 +0000 (+0100) Subject: location: Initialize permissions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~546 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fa82af251f31d14502fe7a3096c03af707b3bc20;p=gnome-shell.git location: Initialize permissions The permissions hash is initialized after consulting the permission store, however the lookup is skipped for requests that cannot be resolved to an application, resulting in an error when accessing the uninitialized hash for saving. Just make sure that the property is always initialized to avoid that error. https://bugzilla.gnome.org/show_bug.cgi?id=778661 --- diff --git a/js/ui/status/location.js b/js/ui/status/location.js index b1e97c74c..668f93c2d 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -284,6 +284,7 @@ const AppAuthorizer = new Lang.Class({ this.reqAccuracyLevel = reqAccuracyLevel; this._permStoreProxy = permStoreProxy; this._maxAccuracyLevel = maxAccuracyLevel; + this._permissions = {}; this._accuracyLevel = GeoclueAccuracyLevel.NONE; },